
<%@ page contentType="text/html; charset=UTF-8" %>
<%@ page import="java.util.Date" %>
<%@ page import="model.DAO" %>
<%@ page import="model.UserProfile" %>
<%@ page import="model.UserStatus" %>
<%

String request_id = "";
if(request.getParameter("id")!=null)
	request_id = request.getParameter("id");

DAO dao = new DAO();
UserProfile user = dao.getUserProfileById(request_id);

String email = user.getEmail();
String name = user.getName();
String gender = user.getGender();


UserStatus us = user.getStatus();
int status = us.getStatus();
double x = us.getX();
double y = us.getY();

String photo =null;

Date createtime = null;
	//user.getCreatetime();
%>

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    </head>
    <body>		
        <form method="POST">
            <table border='2'>
                <tr>	
                    <td>Email</td>
                    <td><%=email%></td>
                </tr>
                <tr>	
                    <td>Name</td>
                    <td><%=name%></td>
                </tr>
                <tr>	
                    <td>Gender</td>
                    <td><%=gender%></td>
                </tr>
                <tr>	
                    <td>Photo</td>
                    <td><%=photo%></td>
                </tr>
                <tr>	
                    <td>Create Time</td>
                    <td><%=createtime%></td>
                </tr>  
                <tr>	
                    <td>Status</td>
                    <td><%=status%></td>
                </tr>  
                <tr>	
                    <td>X</td>
                    <td><%=x%></td>
                </tr>  
                <tr>	
                    <td>Y</td>
                    <td><%=y%></td>
                </tr>                                                                                                                                                 				
            </table>
        </form>
    </body>	
</html>


